
#GLOB_RECURSE
file(GLOB SH_LIST  ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
install(FILES ${SH_LIST} DESTINATION install)

 
file(GLOB_RECURSE INS_FILE_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} scenes/**)
#file(GLOB_RECURSE  INS_FILE_LIST  ${CMAKE_CURRENT_SOURCE_DIR}/scenes/*)
MESSAGE(STATUS "===${INS_FILE_LIST}")


#install(FILES ${INS_FILE_LIST}  DESTINATION install)

FOREACH(FILE_NAME ${INS_FILE_LIST})
    #MESSAGE(${FILE_NAME})
    STRING(REGEX REPLACE "(.+)/(.+)\\..*" "\\1" FILE_PATH ${FILE_NAME})
    #MESSAGE(${FILE_PATH})
    
    install(FILES ${FILE_NAME}  DESTINATION ${FILE_PATH})
ENDFOREACH(FILE_NAME)


